package com.chenfwind.IDao;

import java.util.List;

import com.chenfwind.domain.Owner;

public interface OwnerMapper {
    int deleteByPrimaryKey(String id);

    int insert(Owner record);

    int insertSelective(Owner record);

    Owner selectByPrimaryKey(String id);
    
    Owner selectByUserIdAndStatus(String bookId );

    int updateByPrimaryKeySelective(Owner record);

    int updateByPrimaryKey(Owner record);
    
    List<Owner> selectByUserID(String userId,int status);
    
    List<Owner> selectByNoUserID(String userId, int status);
    
    int updateOwnerByBookId(int status,String bookId);
}